import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { SeqPlayerItemUpdateHelper } from "./SeqPlayerItemUpdateHelper";
import { DictIntIntHelper } from "../Public/DictIntIntHelper";
import { SeqAttributeUpdateHelper } from "../Public/SeqAttributeUpdateHelper";
import { SPublicMiniPlayer } from "../Public/SPublicMiniPlayer";
import { SFightAttribute } from "../Public/SFightAttribute";
import { SAcupointInfo } from "./SAcupointInfo";
import { SPlayerMarry } from "../Public/SPlayerMarry";
import { SWuXinAttribute } from "../Public/SWuXinAttribute";
import { SRuneInfo } from "./SRuneInfo";
import { SJewelTarget } from "../Public/SJewelTarget";
import { SMapSuitSetPartsInfo } from "../Public/SMapSuitSetPartsInfo";
import { SAmuletSpiritInfo } from "../Public/SAmuletSpiritInfo";
type int = number;
//class SLookupPlayerReply
    
    export  class SLookupPlayerReply extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        
        {
            SLookupPlayerReply._regist = new SLookupPlayerReply(true);
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SLookupPlayerReply();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            this.miniPlayer.__write(arg1);
            SeqPlayerItemUpdateHelper.write(arg1, this.playerItemUpdates);
            this.fightAttributeBase.__write(arg1);
            this.fightAttributeFinal.__write(arg1);
            this.acupointInfo.__write(arg1);
            arg1.writeInt(this.secondCareer);
            arg1.writeInt(this.life);
            arg1.writeInt(this.mana);
            arg1.writeLong(this.experience);
            arg1.writeInt(this.mount);
            arg1.writeInt(this.beAdored);
            arg1.writeInt(this.beDespised);
            arg1.writeInt(this.honour);
            arg1.writeString(this.guildName);
            arg1.writeString(this.titleName);
            arg1.writeInt(this.fight);
            arg1.writeBool(this.fashionState);
            arg1.writeBool(this.wingState);
            arg1.writeBool(this.fashionWeaponState);
            arg1.writeBool(this.waistBeltState);
            arg1.writeBool(this.elfState);
            arg1.writeBool(this.surroundState);
            this.playerMarry.__write(arg1);
            DictIntIntHelper.write(arg1, this.wuxingAttributes);
            this.wuxingFightAttribute.__write(arg1);
            this.runesInfo.__write(arg1);
            DictIntIntHelper.write(arg1, this.medalMap);
            arg1.writeInt(this.runeFight);
            this.jewelTarget.__write(arg1);
            arg1.writeInt(this.fightSpiritLevel);
            arg1.writeInt(this.fightSpiritBreakLevel);
            DictIntIntHelper.write(arg1, this.toplistRank);
            SeqPlayerItemUpdateHelper.write(arg1, this.playerAmuletItemUpdate);
            arg1.writeInt(this.activeSpiritEquipExType);
            this.mapSpiritEquipSuitSetInfo.__write(arg1);
            this.amuletSpiritInfo.__write(arg1);
            SeqAttributeUpdateHelper.write(arg1, this.fashionJewelInfo);
            arg1.writeInt(this.flyLevel);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.miniPlayer = new SPublicMiniPlayer();
            this.miniPlayer.__read(arg1);
            this.playerItemUpdates = SeqPlayerItemUpdateHelper.read(arg1);
            this.fightAttributeBase = new SFightAttribute();
            this.fightAttributeBase.__read(arg1);
            this.fightAttributeFinal = new SFightAttribute();
            this.fightAttributeFinal.__read(arg1);
            this.acupointInfo = new SAcupointInfo();
            this.acupointInfo.__read(arg1);
            this.secondCareer = arg1.readInt();
            this.life = arg1.readInt();
            this.mana = arg1.readInt();
            this.experience = arg1.readLong();
            this.mount = arg1.readInt();
            this.beAdored = arg1.readInt();
            this.beDespised = arg1.readInt();
            this.honour = arg1.readInt();
            this.guildName = arg1.readString();
            this.titleName = arg1.readString();
            this.fight = arg1.readInt();
            this.fashionState = arg1.readBool();
            this.wingState = arg1.readBool();
            this.fashionWeaponState = arg1.readBool();
            this.waistBeltState = arg1.readBool();
            this.elfState = arg1.readBool();
            this.surroundState = arg1.readBool();
            this.playerMarry = new SPlayerMarry();
            this.playerMarry.__read(arg1);
            this.wuxingAttributes = DictIntIntHelper.read(arg1);
            this.wuxingFightAttribute = new SWuXinAttribute();
            this.wuxingFightAttribute.__read(arg1);
            this.runesInfo = new SRuneInfo();
            this.runesInfo.__read(arg1);
            this.medalMap = DictIntIntHelper.read(arg1);
            this.runeFight = arg1.readInt();
            this.jewelTarget = new SJewelTarget();
            this.jewelTarget.__read(arg1);
            this.fightSpiritLevel = arg1.readInt();
            this.fightSpiritBreakLevel = arg1.readInt();
            this.toplistRank = DictIntIntHelper.read(arg1);
            this.playerAmuletItemUpdate = SeqPlayerItemUpdateHelper.read(arg1);
            this.activeSpiritEquipExType = arg1.readInt();
            this.mapSpiritEquipSuitSetInfo = new SMapSuitSetPartsInfo();
            this.mapSpiritEquipSuitSetInfo.__read(arg1);
            this.amuletSpiritInfo = new SAmuletSpiritInfo();
            this.amuletSpiritInfo.__read(arg1);
            this.fashionJewelInfo = SeqAttributeUpdateHelper.read(arg1);
            this.flyLevel = arg1.readInt();
            return;
        }

        public /* const */_type: int=12029;

        public /* var */life: int;

        public /* var */mana: int;

        public /* var */experience: number;

        public /* var */mount: int;

        public /* var */beAdored: int;

        public /* var */beDespised: int;

        public /* var */honour: int;

        public /* var */guildName: string;

        public /* var */titleName: string;

        public /* var */fight: int;

        public /* var */fashionState: Boolean;

        public /* var */wingState: Boolean;

        public /* var */fashionWeaponState: Boolean;

        public /* var */waistBeltState: Boolean;

        public /* var */elfState: Boolean;

        public /* var */surroundState: Boolean;

        public /* var */acupointInfo: SAcupointInfo;

        public /* var */wuxingAttributes: Map<any, any> /* flash.utils.Dictionary */;

        public /* var */wuxingFightAttribute: SWuXinAttribute;

        public /* var */runesInfo: SRuneInfo;

        public /* var */medalMap: Map<any, any> /* flash.utils.Dictionary */;

        public /* var */runeFight: int;

        public /* var */jewelTarget: SJewelTarget;

        public /* var */fightSpiritLevel: int;

        public /* var */fightSpiritBreakLevel: int;

        public /* var */toplistRank: Map<any, any> /* flash.utils.Dictionary */;

        public /* var */playerAmuletItemUpdate: Array<any>;

        public /* var */activeSpiritEquipExType: int;

        public /* var */miniPlayer: SPublicMiniPlayer;

        public /* var */amuletSpiritInfo: SAmuletSpiritInfo;

        public /* var */fashionJewelInfo: Array<any>;

        public /* var */flyLevel: int;

        public /* var */playerItemUpdates: Array<any>;

        public /* var */playerMarry: SPlayerMarry;

        public /* var */fightAttributeBase: SFightAttribute;

        public /* var */fightAttributeFinal: SFightAttribute;

        public /* var */secondCareer: int;

        public static /* var */_regist: SLookupPlayerReply;

        public /* var */mapSpiritEquipSuitSetInfo: SMapSuitSetPartsInfo;
    }
